package com.fileshare.web.service;

import com.fileshare.web.dto.info.LoginInfo;
import com.fileshare.web.entity.User;
import me.zhyd.oauth.model.AuthCallback;
import me.zhyd.oauth.request.AuthRequest;

import javax.servlet.http.HttpServletRequest;

public interface LoginService {
    AuthRequest getAuthRequest(String platform);

    boolean thirdPartyLogin(String source, AuthCallback callback, HttpServletRequest request);

    void loginOut(HttpServletRequest request);

    boolean loginBefore(HttpServletRequest request);

    boolean webLogin(String username, String password, HttpServletRequest request);

    LoginInfo getLoginInfo(HttpServletRequest request);

    void addUserLoginLog(User dbUser,String actionType);
}
